package cn.com.cjwsjy.monitor.platform.earlywarn.service;

import cn.com.cjwsjy.monitor.platform.earlywarn.utils.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 应急预案
 *
 * @author
 */
public interface EarlyWarningPlanService {
    /**
     * 获取所有工程部位
     *
     * @return
     */
    R getAllPositions();
    /**
     * 添加应急预案
     *
     * @return
     */
    R addPlan(String docName, String warningLevel, String applicablePeriod, String positionName, MultipartFile file, String uploadPerson) throws IOException;

    /**
     * 获取所有已添加过的适用时期
     *
     * @return
     */
    R  getAllPeriods();
    /**
     * 修改应急预案
     *
     * @return
     */
    R updatePlan(Long id,String docName, String warningLevel, String applicablePeriod, String positionName, MultipartFile file, String uploadPerson) throws IOException;
    /**
     * 删除应急预案
     *
     * @return
     */
    R deletePlan(Long id);
}
